<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewFoodTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewFoodLabel_id}"/>
                    <h:outputText value="#{foodController.selected.id}" title="#{bundle.ViewFoodTitle_id}"/>
                    <h:outputText value="#{bundle.ViewFoodLabel_name}"/>
                    <h:outputText value="#{foodController.selected.name}" title="#{bundle.ViewFoodTitle_name}"/>
                    <h:outputText value="#{bundle.ViewFoodLabel_description}"/>
                    <h:outputText value="#{foodController.selected.description}" title="#{bundle.ViewFoodTitle_description}"/>
                    <h:outputText value="#{bundle.ViewFoodLabel_smallPrice}"/>
                    <h:outputText value="#{foodController.selected.smallPrice}" title="#{bundle.ViewFoodTitle_smallPrice}"/>
                    <h:outputText value="#{bundle.ViewFoodLabel_mediumPrice}"/>
                    <h:outputText value="#{foodController.selected.mediumPrice}" title="#{bundle.ViewFoodTitle_mediumPrice}"/>
                    <h:outputText value="#{bundle.ViewFoodLabel_largePrice}"/>
                    <h:outputText value="#{foodController.selected.largePrice}" title="#{bundle.ViewFoodTitle_largePrice}"/>
                    <h:outputText value="#{bundle.ViewFoodLabel_categoryId}"/>
                    <h:outputText value="#{foodController.selected.categoryId}" title="#{bundle.ViewFoodTitle_categoryId}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{foodController.destroyAndView}" value="#{bundle.ViewFoodDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewFoodEditLink}"/>
                <br />
                <h:commandLink action="#{foodController.prepareCreate}" value="#{bundle.ViewFoodCreateLink}" />
                <br />
                <h:commandLink action="#{foodController.prepareList}" value="#{bundle.ViewFoodShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewFoodIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
